计算机与现代化 ›› 2013, Vol. 1 ›› Issue (4): 10-14.doi: 10.3969/j.issn.1006-2475.2013.04.003

• 人工智能 • 上一篇    下一篇

基于数据挖掘和融合技术的游戏关卡生成方法

齐彦君1,2,张冰怡2,3,冯志勇3   

  1. 1.天津大学软件学院,天津 300072;2.中国民航大学中国民航信息技术科研基地,天津 300300;3.天津大学计算机科学与技术学院,天津 300072
  • 收稿日期:2012-12-11 修回日期:1900-01-01 出版日期:2013-04-17 发布日期:2013-04-17

Game Level Automatic Generating Method Based on Data Mining and Data Fusion

QI Yan-jun1,2, ZHANG Bing-yi2,3, FENG Zhi-yong3   

  1. 1. School of Computer Software, Tianjin University, Tianjin 300072, China;2. Information Technology Research Base of Civil Aviation Administration of China, Civil Aviation University of China, Tianjin 300300, China;3. School of Computer Science and Technology, Tianjin University, Tianjin 300072, China
  • Received:2012-12-11 Revised:1900-01-01 Online:2013-04-17 Published:2013-04-17

摘要: 在游戏开发过程中,场景设计作为游戏开发的重点,如果都由设计师逐一设计将花费大量的时间和资本,而且玩家黏着度低。本文提出一种基于数据挖掘和融合技术的游戏关卡自动生成方法。该方法首先利用布尔逻辑与粗糙集理论相结合的离散化方法对游戏玩法数据进行预处理,并提出一种基于信息增益的属性约简算法消除冗余属性;接着利用决策树ID3算法建立一个游戏难易程度的评估模型,构造决策树;然后利用数据融合D-S算法得到体现玩家行为的数据,并结合决策树得到对于玩家的难易程度;最后根据难易程度获得游戏关卡参数,并自动生成游戏关卡。以推箱子游戏做的实验结果表明,该方法有效降低了开发成本并提高了游戏的可玩性。

关键词: 数据挖掘, 数据融合, 属性约简, 游戏关卡, 自动生成

Abstract: In game development, if scene design as the focus is designed one by one, a lot of time and capital will be spent, and players stick low degree. Therefore, a game level automatic generation method based on data mining and data fusion technology is presented. Firstly, the method preprocesses the game play data by using the discretization of Boolean logic combined with rough set theory, puts forward an attribute reduction algorithm based on information gain to eliminate the redundant attributes. Secondly, a decision tree is constructed by using the ID3 algorithm to build an evaluation model of game difficulties. Then the D-S data fusion algorithm is used to get the data reflecting the players behavior, and the data is processed with the decision tree to get the difficulty level of the game for players. Finally, the game level parameters are modified to automatically generate the game level according to the difficulty level. By the experiment of Sokoban game for example, the results show that the method is effective to reduce development cost and to improve playability.

Key words: data mining, data fusion, attribute reduction, game level, automatic generating

中图分类号: